package com.sinven.controller;

import com.sinven.common.ActionResult;
import com.sinven.pojo.Apply;
import com.sinven.service.ApplyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController("frontApply")
public class ApplyController {

    @Autowired
    private ApplyService applyService;

    @PostMapping("apply")
    public boolean apply(Apply apply){
        boolean result = applyService.addApply(apply);
        return  result;
    }
}
